<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#form1 #dateinbegin" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#form1 #dateinend" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>
<form action="/admini/manageday/operate/" method="get" style="margin:0px" id="form1">
    <div style=" border:1px solid #DDDDDD; padding:2px; margin:2px;" id='sel'>
        <label for="quick">快速搜索：</label><input type="text" id="quick" name="quick" value="<?php echo $this->quick; ?>" />
        <label for="starttime">时间：</label><input type="text" id="dateinbegin" name="dateinbegin" value="<?php echo $this->dateinbegin; ?>" />
        <label for="endtime">--</label><input type="text" id="dateinend" name="dateinend" value="<?php echo $this->dateinend; ?>" />
        <input type="submit" id="queryButton" value="查询"/>
    </div>
</form>
    <div class="dataTable">
        <table>  
            <tr>
                <th class="w1" width="10%">序号</th>
                <th class="w2" width="10%">操作人员</th>
                <th class="w3" width="20%">内容</th>
                <th class="w4" width="10%">用户名称</th>	
                <th class="w5" width="10%">用户仓库</th>	
                <th class="w6" width="10%">关联ID</th>
                <th class="w7" width="10%">金额</th>
                <th class="w8" width="10%">时间</th>
                <th class="w9" width="10%">IP</th>
            </tr>  
        
            <?php if($this->operatelist != ''){
                foreach ($this->operatelist as $Item) { ?> 
                <tr>
                    <td class="w1" nowrap align="center"><?php echo $Item->id; ?></td>
                    <td class="w2" nowrap align="center"><?php echo $Item->operate_name; ?></td>
                    <td class="w3" nowrap align="center"><?php echo $Item->content;?></td>
                    <td class="w4" nowrap align="center"><?php echo $Item->userde?$Item->userde->nikename:"";?></td>
                    <td class="w5" nowrap align="center"><?php echo $Item->userde?$Item->userde->storeno:"";?></td>
                    <td class="w6" nowrap align="center"><?php echo $Item->reid;?></td>
                    <td class="w7" nowrap align="center"><?php echo $Item->money?"￥".$Item->money:"-";?></td>
                    <td class="w8" nowrap align="center"><?php echo $Item->createdate;?></td>
                    <td class="w9" nowrap align="center"><?php echo $Item->ip;?></td>
                 </tr>         
            <?php } }?>
        </table>
    </div>                
    <div class="toolbar">
        <?php echo $this->partial('paging.phtml', array("pages" => $this->operateall,"pamas"=>"quick=".$this->quick."&dateinbegin=$this->dateinbegin&dateinend=$this->dateinend")); ?>
    </div>   
<script type="text/javascript">
    $('#release-button').click(function(){
        location.href='/admini/manageday/rebacklog/';
    });
</script>